package org.forum.controller;

import org.forum.service.MainTopicService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class MainTopicController {

	Logger logger = LoggerFactory.getLogger(MainTopicController.class);
	
	private int mainTopicId;

	public void setMainTopicId(int mainTopicId) {
		mainTopicId = mainTopicId;
	}
	
	private MainTopicService mainTopicService;

	public void setMainTopicService(MainTopicService mainTopicService) {
		this.mainTopicService = mainTopicService;
	}



	/**
	 * 通过mainTopicId获取回复
	 * 输入：
	 * 处理：
	 * 1、查找出所有的回复
	 * 2、对数据按时间进行排序
	 * 输出：
	 */
	public void getRepliesByMainTopicId(){
		mainTopicService.getRepliesByMainTopicId(mainTopicId);
	}
}
